package cn.edu.tsinghua.ie.ieFunds.repository;

import cn.edu.tsinghua.ie.ieFunds.bean.bussiness.Transaction;
import cn.edu.tsinghua.ie.ieFunds.bean.system.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface TransactionRepository extends JpaRepository<Transaction, Long>, JpaSpecificationExecutor<Transaction> {

    List<Transaction> findAllByUser(User user);
}
